from django.db import models

# Create your models here.

class Person(models.Model):
    name=models.CharField(max_length=100)
    age=models.IntegerField(default=0)
    create_time=models.DateTimeField('date published')
    # objects = models.Manager()

    def __repr__(self):
        return "{name："+self.name+",age:"+str(self.age)+",create_time:"+str(self.create_time)+"}"
    def __str__(self):
        return "{name："+self.name+",age:"+str(self.age)+",create_time:"+str(self.create_time)+"}"

    def info(self):
        return self.__repr__()

